//
//  ActivityOfViewController.m
//  PetAPP
//
//  Created by apple on 16/2/5.
//  Copyright © 2016年 Yuming. All rights reserved.
//

#import "ActivityOfViewController.h"
#import "DetailOfPageViewController.h"
#import "ActivityViewController.h"

@interface ActivityOfViewController ()

@end

@implementation ActivityOfViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
    self.view.backgroundColor = [UIColor whiteColor];
    [self createSubButton];
}



- (void)handleShareWithButton:(UIButton *)button {
      

}

- (void)handleBackWithButton:(UIButton *)button {

    [self dismissViewControllerAnimated:YES completion:nil];

}

- (void)createSubButton {
    
    UIButton *backButton = [UIButton buttonWithType:UIButtonTypeCustom];
    [backButton setImage:[UIImage imageNamed:@"whiteback"] forState:UIControlStateNormal];
    [self.view addSubview:backButton];
    backButton.frame = CGRectMake(15, 35, 50, 50);
    
    UIBezierPath *backgroundPath = [UIBezierPath bezierPathWithRoundedRect:CGRectMake(0, 3, 50, 50) cornerRadius:25];
    
    
    backButton.layer.shadowPath = backgroundPath.CGPath;
    backButton.layer.shadowOpacity = 0.3;
    backButton.layer.shadowRadius = 0;
    backButton.layer.shadowColor = [UIColor blackColor].CGColor;
    [backButton addTarget:self action:@selector(handleBackWithButton:) forControlEvents:UIControlEventTouchUpInside];
    
    
    UIButton *shareButton = [UIButton buttonWithType:UIButtonTypeCustom];
    [shareButton setImage:[UIImage imageNamed:@"fenxiang"] forState:UIControlStateNormal];
    [self.view addSubview:shareButton];
    shareButton.frame = CGRectMake(self.view.frame.size.width - 75, 35, 50, 50);
    
    shareButton.layer.shadowPath = backgroundPath.CGPath;
    shareButton.layer.shadowOpacity = 0.3;
    shareButton.layer.shadowRadius = 0;
    shareButton.layer.shadowColor = [UIColor blackColor].CGColor;
    [shareButton addTarget:self action:@selector(handleShareWithButton:) forControlEvents:UIControlEventTouchUpInside];


}




- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
